#pragma once
#include "stdafx.h"
#include "ServerClient.h"
#include "MyArray.h"
#include <WinSock2.h>

class Server
{
	MyArray<ServerClient*> clientList2;
	int clientCount;
	protected:
		WSADATA wsaData;
        SOCKET mySocket;
        SOCKET myBackup;
        SOCKET acceptSocket;
        sockaddr_in myAddress;
	private:
		void Listen();
	public:
		Server(void);
		~Server(void);
		void start(int);
		void SendToAll(char[]);
		void disonnectClient(int);
		void sendUserList();
		std::string getUserList();
};

